package main

import (
	"fmt"

	"github.com/robfig/cron"
)

func main() {
	c := cron.New()
	// 每天晚上1点计算前一天的数据
	specCalcDay := "0 5 0 * * ?"
	c.AddFunc(specCalcDay, calcDay)
	c.Start()
}

func calcDay() {
	fmt.Println("FFFFFFFFFFFFFF")
}
